<template>
    <!-- // NRCUDU私有性能统计表-小区（天） -->
    <index-card :indexCardTitle="indexCardTitle">
        <el-table :data="tableData" v-loading="loading">
            <el-table-column prop="startTime" label="开始时间" min-width="200">
                <template #default="scope">
                    {{ scope.row.startTime ? formatDateNormal(scope.row.startTime) : null }}
                </template>
            </el-table-column>
            <el-table-column prop="cgi" label="小区CGI" min-width="200" />
            <el-table-column prop="saFlag" label="SA标识" min-width="200" />
            <el-table-column prop="cellName" label="NRCELL名称" min-width="200" />
            <el-table-column prop="cityName" label="所属地市" min-width="200" />
            <el-table-column prop="counter1911817066" label="NR向E-UTRAN执行的EPS fallback切换出成功次数" min-width="200" />
            <el-table-column prop="counter1911817069" label="NR向E-UTRAN执行的EPS fallback切换出准备尝试次数" min-width="200" />
            <el-table-column prop="zteC6000800011" label="[普通]分5QI的QoS Flow建立成功次数5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800701" label="[普通]分5QI的QoS Flow建立请求数，由于EPS fallback触发5QI[1](中兴)"
                min-width="200" />
            <el-table-column prop="zteC6000800591" label="[普通]分5QI的QoS Flow释放次数，GNB由于空口定时器超时5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800171" label="[普通]分5QI的QoS Flow切入成功次数5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800231" label="[普通]分5QI的QoS Flow遗留数5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800671" label="[普通]分5QI的Qos Flow由于RNAU或Resume迁入成功次数5QI[1](中兴)"
                min-width="200" />
            <el-table-column prop="zteC6000800571" label="[普通]分5QI的QoS Flow重建立入成功次数5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800401" label="[普通]分5QI的QoS Flow释放次数，无线链路失败(RLF)5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800621" label="[普通]分5QI的QoS Flow释放次数，GNB由于站内部分接纳失败5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800631" label="[普通]分5QI的QoS Flow释放次数，GNB发起的正常释放5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800201" label="[普通]分5QI的QoS Flow切出失败次数，由于部分接纳失败5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800641" label="[普通]分5QI的QoS Flow释放次数，GNB由于人工OAM5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800651" label="[普通]分5QI的QoS Flow释放次数，GNB由于节能导致5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800601" label="[普通]分5QI的QoS Flow释放次数，GNB由于切换失败5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800611" label="[普通]分5QI的QoS Flow释放次数，GNB由于重建立失败5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6000800211" label="[普通]分5QI的QoS Flow平均个数5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC6052200071" label="[普通]小区mapped 5QI上行PDCP SDU成功接收个数mapped5QI[1](中兴)"
                min-width="200" />
            <el-table-column prop="zteC6052200171" label="[普通]小区mapped 5QI上行PDCP SDU丢包个数mapped5QI[1](中兴)"
                min-width="200" />
            <el-table-column prop="zteC6135800071" label="[普通]小区mapped 5QI下行接收到的RLC SDU个数mapped5QI[1](中兴)"
                min-width="200" />
            <el-table-column prop="zteC6135800101" label="[普通]小区mapped 5QI下行RLC SDU空口丢包数mapped5QI[1](中兴)"
                min-width="200" />
            <el-table-column prop="zteC6000800221" label="[普通]分5QI的QoS Flow最大个数5QI[1](中兴)" min-width="200" />
            <el-table-column prop="zteC600190000MrEpsFallback" label="[普通]NR到LTE系统间重定向次数基于测量的EpsFallback[3](中兴)"
                min-width="200" />
            <el-table-column prop="zteC600190000EpsFallback" label="[普通]NR到LTE系统间重定向次数基于盲的EpsFallback[4](中兴)"
                min-width="200" />
            <el-table-column prop="zteC600800031" label="[普通]基于EPS FALLBACK的NR到LTE切换出执行成功次数(中兴)" min-width="200" />
            <el-table-column prop="zteC600800025" label="[普通]基于EPS FALLBACK的NR到LTE切换出准备请求次数(中兴)" min-width="200" />
            <el-table-column prop="zteKpiVoNrViNrTraffic5Qi1"
                label="[普通]分5QI的QoS Flow平均个数5QI[1](VoNR、ViNR,话务量)(中兴)(erl)" min-width="200" />
            <el-table-column prop="kpiWirelessSuccConnRate5Qi1" label="VoNR无线接通率(5QI1)(%)" min-width="200" />
            <el-table-column prop="kpiEpsfbIratHoPrepAttOutEutran" label="EpsFallBack切换出准备请求次数(NG-RAN->EUTRAN)"
                min-width="200" />
            <el-table-column prop="kpiRrcRedirectToLte" label="EPS fallback RRC 重定向到LTE次数" min-width="200" />
            <el-table-column prop="kpiAttsetup5Qi1" label="VoNR建立请求次数(5QI1)" min-width="200" />
            <el-table-column prop="kpiHoSuccOutRateInterRat5Qi1" label="系统间切换成功率(NG-RAN->EUTRAN)(5QI1)(%)"
                min-width="200" />
            <el-table-column prop="kpiWirelessDropRateCellLevel5Qi1" label="掉线率(5QI1)(小区级)(%)" min-width="200" />
            <el-table-column prop="kpiWirelessDropRateNetLevel5Qi1" label="掉线率(5QI1)(网络级)(%)" min-width="200" />
            <el-table-column prop="kpiHoPrepAttOutInterRat5Qi1" label="系统间切换出准备请求次数(NG-RAN->EUTRAN)(5QI1)"
                min-width="200" />
            <el-table-column prop="kpiVoNrTraffic5Qi1" label="全网每天VoNR语音话务量(5QI1)(erl)" min-width="200" />
            <el-table-column prop="kpiPdcpSduPktLossRateUl5Qi1" label="上行PDCP SDU平均丢包率(5QI1)(%)" min-width="200" />
            <el-table-column prop="kpiPdcpSduPktLossRateDl5Qi1" label="下行PDCP SDU平均丢包率(5QI1)(%)" min-width="200" />
            <el-table-column prop="kpiVoNrTraffic" label="VoNR话务量(erl)" min-width="200" />
            <el-table-column prop="hwCounter1911817084" label="NR向E-UTRAN执行的EPS fallback重定向的次数(华为)" min-width="200" />
            <el-table-column prop="hwCounter1911816950" label="RRC建立成功次数(华为)" min-width="200" />
            <el-table-column prop="hwCounter1911816952" label="RRC建立请求消息次数(包含重发)" min-width="200" />
            <el-table-column prop="hwCounter1911822821" label="NR向E-UTRAN语音业务切换准备尝试次数" min-width="200" />
            <el-table-column prop="hwCounter1911822819" label="NR向E-UTRAN语音业务切换出执行成功次数" min-width="200" />
            <el-table-column prop="hwCounter19118204885Qi1" label="DU小区中特定5QI1的最大激活用户数" min-width="200" />
            <el-table-column prop="hwCounter19118204815QI1" label="小区中特定5QI1的PDCP发往RLC层的PDU数据量(kbit)" min-width="200" />
            <el-table-column prop="hwCounter19118204795QI1" label="小区中特定5QI1的PDCP收到RLC层的PDU数据量(kbit)" min-width="200" />
            <el-table-column prop="hwCounter19118205105QI1" label="小区中特定5QI1的QosFlow建立尝试次数" min-width="200" />
            <el-table-column prop="hwCounter19118205115QI1" label="小区中特定5QI1的QosFlow建立成功次数" min-width="200" />
            <el-table-column prop="hwCounter19118295325QI1" label="小区中因流程冲突导致特定5QI1的QosFlow建立失败次数" min-width="200" />
            <el-table-column prop="hwCounter19118205135QI1" label="小区中特定5QI1的QosFlow异常释放的次数" min-width="200" />
            <el-table-column prop="hwCounter19118205195QI1" label="小区中特定5QI1的遗留QosFlow数" min-width="200" />
            <el-table-column prop="hwCounter19118205305QI1" label="小区中特定5QI1的QosFlow切换入次数" min-width="200" />
            <el-table-column prop="hwCounter19118205125QI1" label="小区中特定5QI1的QosFlow正常释放的次数" min-width="200" />
            <el-table-column prop="hwCounter19118251195QI1" label="DU小区中特定5QI1的RLC层发送的上行数据总吞吐量(kbit)" min-width="200" />
            <el-table-column prop="hwCounter19118204855QI1" label="DU小区中特定5QI1的RLC层发送的下行数据总吞吐量(kbit)" min-width="200" />
            <el-table-column prop="hwCounter19118205215QI1" label="小区中特定5QI1的平均QosFlow数" min-width="200" />
            <el-table-column prop="hwCounter19118228895QI1" label="小区中特定5QI1的PDCP上行业务丢包数" min-width="200" />
            <el-table-column prop="hwCounter19118228885QI1" label="小区中特定5QI1的PDCP收到RLC层的PDU包数" min-width="200" />
            <el-table-column prop="hwCounter19118228875QI1" label="DU小区中特定5QI1的RLC层SDU下行空口丢包数" min-width="200" />
            <el-table-column prop="hwCounter19118228865QI1" label="DU小区中特定5QI1的RLC层收到的下行SDU包数" min-width="200" />
            <el-table-column prop="cityId" label="地市编号" min-width="200" />
            <el-table-column prop="cityName" label="地市名称" min-width="200" />
        </el-table>
    </index-card>
</template>

<script setup>
import { ref } from "vue";
import { apiCommon, formatDateNormal } from "@/utils/index.js";
import * as qualityApi from "@/api/biz/networkQuality";
import mittBus from "@/utils/mittBus"; // mitt事件总线

mittBus.on("get5GIndexItemData", (params) => {
    getData(params)
});

const props = defineProps({
    indexCardTitle: {
        type: String,
        default: '',
    },
    rowsData: {
        type: Object,
        default: () => { },
    },
});

const tableData = ref([]);
let loading = ref(false);

const getData = async (params) => {
    // console.log('params', params)

    loading.value = true;
    tableData.value = await apiCommon(qualityApi.getNrPrivateCapabilityDailyList, params);
    tableData.value = tableData.value.data;
    loading.value = false;
}

getData(props.rowsData);
</script>